package com.xxs.interceptor;

import com.jfinal.aop.Interceptor;
import com.jfinal.aop.Invocation;
import com.jfinal.core.Controller;
import com.xxs.common.Const;

/**
 * Created with IntelliJ IDEA.
 * Author: StevenChow
 * Date: 13-3-30
 */
public class GlobalInterceptor implements Interceptor {

    @Override
    public void intercept(Invocation inv) {
        Controller controller = inv.getController();

//        controller.setAttr("moduleList", Module.dao.getList());

        inv.invoke();

        controller.setAttr("v", Const.TIMESTAMP);
    }
}
